"use strict";
class Student {
    /*constructor(public _firstName: string, public _lastName: string) {
        this._firstName = _firstName;
        this._lastName = _lastName;
    }*/
    constructor(firstName, lastName) {
        this._firstName = firstName;
        this._lastName = lastName;
    }
    get firstName() {
        return this._firstName;
    }
    set firstName(value) {
        this._firstName = value;
    }
    get lastName() {
        return this._lastName;
    }
    set lastName(value) {
        this._lastName = value;
    }
}
function fullName(person) {
    return `fullname is ${person.firstName} ${person.lastName}`;
}
const stu = new Student("诸葛", "孔明");
document.body.innerHTML = fullName(stu);
